package com.boot.app.blog.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.boot.app.common.domain.Base;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@TableName(value = "blog_category")
public class BlogCategory extends Base {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @TableField(value = "parent_id")
    private Long parentId;

    @TableField(value = "category_name")
    private String categoryName;

    @TableField(value = "status")
    private Integer status;

    @TableField(value = "order_number")
    private Integer orderNumber;

    @TableField(value = "is_leaf")
    private Boolean isLeaf;

    @TableField(value = "remark")
    private String remark;

}
